<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{% with "12 24 3" as list %}
{% for item in list.split %}
    {{item}} test
{% endfor %}
{% endwith %}
{{ "thisisjustfortestincasethatthestringistolong" | slice:":5" }}
</body>
</html>
